<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="../resource/css/bootstrap.min.css"/>
		<link rel="stylesheet" type="text/css" href="../resource/css/jedate.css"/>
		<link rel="stylesheet" type="text/css" href="../resource/css/common.css"/>
		<style type="text/css">
			.search-box{display: block;}
		</style>
	</head>
	<body>
	<!--遮罩层-->
		<div class="container-fluid">
			<div class="search-box">
				<div class="search-cover">
					<div class="row">
						<div class="col-xs-5">
							<ul class="list-group">
							  <li class="list-group-item list-group-lists search-active">项目名称</li>
							  <li class="list-group-item list-group-lists">开始时间</li>
							  <li class="list-group-item list-group-lists">结束时间</li>
							</ul>
						</div>
						<div class="col-xs-7">
							<div class="search-lists search-list1 search-active">
								<p>全部1</p>
							</div>
							<div class="search-lists search-list2 search-active">
								<p>全部2</p>
							</div>
							<div class="search-lists search-list3 search-active">
								<p>全部3</p>
							</div>
						</div>
					</div>
					<div class="row add-pro pros">
						<div class="col-xs-9">
							<input type="text" class="pro pro-input pro-name" placeholder="请输入"/>
						</div>
						<div class="col-xs-3">
							<span class="add">添加</span>
						</div>
					</div>
					<div class="row start-time pros">
						<div class="col-xs-9">
							<input type="text" class="jeinput pro pro-input" id="test01" placeholder="YYYY-MM-DD hh:mm:ss">
						</div>
						<div class="col-xs-3">
							<span class="add">添加</span>
						</div>
					</div>
					<div class="row edd-time pros">
						<div class="col-xs-9">
							<input type="text" class="jeinput pro pro-input" id="test02" placeholder="YYYY-MM-DD hh:mm:ss">
						</div>
						<div class="col-xs-3">
							<span class="add">添加</span>
						</div>
					</div>
		
					<div class="row">
						<div class="col-xs-9">
							<span class="btns pro close-cover">取消</span>
						</div>
						<div class="col-xs-3">
							<span class="sub-cover btns">确定</span>
						</div>
					</div>
				</div>
			</div>
			
			
		</div>
	</body>
</html>
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="../resource/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../resource/js/jquery.jedate.js" type="text/javascript" charset="utf-8"></script>

<script>
	$(document).ready(function() {
		 $("#test01").jeDate({
        	format: "YYYY-MM-DD hh:mm:ss"
    	 });
    	 $("#test02").jeDate({
        	format: "YYYY-MM-DD hh:mm:ss"
    	 });
	});
</script>
<script type="text/javascript">
	$(".list-group-lists").click(function(){
		var i=$(this).index();
		$(".search-lists").hide();
		$(".search-lists").eq(i).show();
		$(".list-group-lists").removeClass("search-active");
		$(this).addClass("search-active");
		$(".pros").hide();
		$(".pros").eq(i).show();

	});
	$(".add").eq(0).click(function(){
		$(".search-list1").append("<p>"+$(".pro-name").val()+"</p>");
	});
	$(".add").eq(1).click(function(){
		$(".search-list2").append("<p>"+$("#test01").val()+"</p>");
	});
	$(".add").eq(2).click(function(){
		$(".search-list3").append("<p>"+$("#test02").val()+"</p>");
	});
//	点击取消按钮
	$(".close-cover").click(function(){
		
		$(".search-box").slideUp();
	});
//	点击确定按钮
	$(".sub-cover").click(function(){
		
		$(".search-box").slideUp();
	});
</script>








